package com.loongtech.bi.entity.bigr;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "bigr_active_situation")
public class ActiveSituation implements Serializable {
    private final static long serialVersionUID = 2L;

    @Id
    private String day; // 日期
    @Id
    private String userid;
    @Id
    private String channel;
    @Id
    private String rolename;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int category;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int lastloginday;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int lastlastloginday;
    @Column(columnDefinition="float NOT NULL default 0.0")
    private float daychange;
    @Column(columnDefinition="float NOT NULL default 0.0")
    private float lastavtime;
    @Column(columnDefinition="float NOT NULL default 0.0")
    private float lastlastavtime;
    @Column(columnDefinition="float NOT NULL default 0.0")
    private float avtimechange;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int sevenloss;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int fourteenloss;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int lastmaxlv;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int lastlastmaxlv;


    public String getKey() {
        return  day + "-" + userid + "-" + channel + "-" +rolename;
    }
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getDay() {
        return day;
    }

    public String getUserid() {
        return userid;
    }

    public String getChannel() {
        return channel;
    }

    public int getCategory() {
        return category;
    }

    public int getLastloginday() {
        return lastloginday;
    }

    public int getLastlastloginday() {
        return lastlastloginday;
    }

    public float getDaychange() {
        return daychange;
    }

    public float getLastavtime() {
        return lastavtime;
    }

    public float getLastlastavtime() {
        return lastlastavtime;
    }

    public float getAvtimechange() {
        return avtimechange;
    }

    public int getSevenloss() {
        return sevenloss;
    }

    public int getFourteenloss() {
        return fourteenloss;
    }

    public int getLastmaxlv() {
        return lastmaxlv;
    }

    public int getLastlastmaxlv() {
        return lastlastmaxlv;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public void setLastloginday(int lastloginday) {
        this.lastloginday = lastloginday;
    }

    public void setLastlastloginday(int lastlastloginday) {
        this.lastlastloginday = lastlastloginday;
    }

    public void setDaychange(float daychange) {
        this.daychange = daychange;
    }

    public void setLastavtime(float lastavtime) {
        this.lastavtime = lastavtime;
    }

    public void setLastlastavtime(float lastlastavtime) {
        this.lastlastavtime = lastlastavtime;
    }

    public void setAvtimechange(float avtimechange) {
        this.avtimechange = avtimechange;
    }

    public void setSevenloss(int sevenloss) {
        this.sevenloss = sevenloss;
    }

    public void setFourteenloss(int fourteenloss) {
        this.fourteenloss = fourteenloss;
    }

    public void setLastmaxlv(int lastmaxlv) {
        this.lastmaxlv = lastmaxlv;
    }

    public void setLastlastmaxlv(int lastlastmaxlv) {
        this.lastlastmaxlv = lastlastmaxlv;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }
}
